﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SIPDTO;
using System.Data;

namespace SIP
{
    public partial class ListadoConfirma : System.Web.UI.Page
    {

        #region ** Declaración de variables
        List<dtoConfirma> _dtconfirma = new List<dtoConfirma>();
        SIPBLL.SIPBLL _bll = new SIPBLL.SIPBLL();
        //int _index;
        //GridViewRow _row;
        dtoConfirma _dtoconfirma = new dtoConfirma();
        dtoError _resp = new dtoError();

        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CargarConfirmas();
                Session["Crear"] = true;
                
            }
        }

        private void CargarConfirmas()
        {
            _dtoconfirma.IdParroquia = Convert.ToInt16(Session["Parroquia"]);
            _dtconfirma = _bll.ObtenerConfirmaxParroquia(_dtoconfirma);
            Grid.DataSource = _dtconfirma;
            Grid.DataBind();
        }


        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Session["Crear"] = true;
            Response.Redirect("ConstanciaConfirma.aspx");
        }

    }
}